﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Master.Master" AutoEventWireup="true" CodeBehind="AssignDepartmentRepresentative.aspx.cs" Inherits="PresentationLayer.View.DepartmentManager.AssignDepartmentRepresentative" %>

<%@ Register src="../mainMenu.ascx" tagname="mainMenu" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style25
        {
            width: 450px;
            height: 26px;
        }
        .style29
        {
            height: 81px;
        }
        .style44
        {
            width: 300px;
            height: 31px;
            margin-left: 200px;
        }
        .style49
        {
            width: 664px;
            height: 26px;
            margin-left: 125px;
        }
        .style52
        {
            width: 85px;
        }
        .style53
        {
            width: 112px;
        }
        .style54
        {
            width: 19px;
        }
        .style55
     {
         width: 1060px;
         height: 26px;
     }
     .style56
     {
         width: 1060px;
         height: 25px;
     }
        .style58
     {
         width: 530px;
         height: 26px;
     }
     .style59
     {
         width: 530px;
         height: 25px;
     }
     .style61
     {
         height: auto;
         width: 200px;
     }
        .style62
     {
         width: 1060px;
         height: 14px;
     }
     .style63
     {
         width: 530px;
         height: 14px;
     }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="100%">
    <tr>
        <td style="vertical-align:top;" class="style61">

            <uc1:mainMenu ID="mainMenu1" runat="server" />
         </td>

    <td>
     <div style="vertical-align:top;">
    <center><h2><u>Assign Department Representative</u></h2></center>
    <table>
    <tr>
       <td class="style49">
       
     <asp:Label ID="lblmessage" runat="server" Text="Label" Visible="False" ForeColor="Red" Font-Bold=true Font-Size=Medium>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</asp:Label> 
       
       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
       
       </td>
       <td class="style25" ></td> 
      </tr>
     </table>

    <asp:Panel runat=server ID="Ipanel" HorizontalAlign="Left">
    <table width="800px" align="center"style="height: 116px">
    <tr>
    <td class="style58">Current Representative&nbsp; </td>
    <td class="style55"> 
        <asp:Label ID="lblCurrentRep" runat="server"></asp:Label>
        &nbsp;</td>
    </tr>
    <tr>
    
    <td class="style59">Current Collection Point&nbsp;</td>
    <td class="style56"><asp:Label ID="lblCollectionPoint" runat="server"></asp:Label>
        &nbsp;</td>
    </tr>
    <tr>
    
    <td class="style63">New Collection Point</td>
    <td class="style62">
        <asp:DropDownList 
            ID="ddlNewColPoint" runat="server" 
            Width="250px" AutoPostBack="True" 
            Height="27px">
        <asp:ListItem></asp:ListItem>
       
        </asp:DropDownList>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>
    </tr>
     <tr>
       
       <td class="style63">Employee</td>
        <td class="style62">
            <asp:TextBox ID="txtEmployee" runat="server" Width="250px" 
                EnableViewState ="true"></asp:TextBox>
           
         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <asp:Button ID="btnSearch" runat="server" Text="Search" 
            onclick="btnSearch_Click" Width="82px" />
           
            &nbsp;&nbsp;&nbsp;
            <asp:LinkButton ID="btnAll" runat="server" onclick="btnAll_Click">All Employee</asp:LinkButton>
           
         </td>
         
     </tr>
    
    </table>   
 
<br/>



    <table>
    <tr>    
    <td width="500px" class="style29">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    <asp:gridview id="GVEmpList" runat="server" autogeneratecolumns="False" 
            Width="500px" CellPadding="4" 
        ForeColor="#333333" GridLines="None" 
            onrowdatabound="GVEmpList_RowDataBound">        
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
     <columns>
     <asp:TemplateField HeaderText="Sr.No"> 
       <ItemTemplate>
          
           <%# Container.DataItemIndex +1 %>
       </ItemTemplate>
     
         <ItemStyle HorizontalAlign="Center" />
     
     </asp:TemplateField>         
     <asp:boundfield datafield="EmpId" HeaderText="Employee ID" >              
         <ItemStyle HorizontalAlign="Center" />
         </asp:boundfield>
     <asp:boundfield datafield="EmpName" HeaderText="Employee Name" >                 
         <ItemStyle HorizontalAlign="Center" />
         </asp:boundfield>
     <asp:TemplateField HeaderText="Assign">
        <ItemTemplate>
             <asp:LinkButton ID="btnselect" Runat="server" OnClick="btnselect_Click" CommandArgument='<%# Eval( "EmpId" ) %>'>Select</asp:LinkButton>
           
        </ItemTemplate>
         <ItemStyle HorizontalAlign="Center" />
      </asp:TemplateField>     
     </columns>  
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
     </asp:gridview> 
        </td>
     </tr> 
     </table>
        <br />
        <br />
     <br />
     <table>
     <tr>
     <td class="style53">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>
    <td class="style54">&nbsp;&nbsp;</td>
    <td style ="margin-left:10px" class="style52">
         <asp:Button ID="btnDelegate" runat="server" Text="Delegate" 
             Width="134px" onclick="btnDelegate_Click" />
         </td>
     <td style="margin-left: 40px">
         &nbsp;&nbsp;</td>
         <td>
             &nbsp;</td>
     </tr>
     </table>
     </asp:Panel>

 
 </div>
 
    </td>
    </tr>
    </table>


</asp:Content>
